#ifndef CPOINT_H
#define CPOINT_H

#include <iostream>

class CPoint
{
public:
    CPoint();
    CPoint(int x,int y);
    CPoint(CPoint* pOther);
    CPoint(const CPoint& rhs);

    //Operations
    void offset(int xOffset,int yOffset);
    void offset(const CPoint& rhs);
    void setPoint(int x,int y);
    bool operator ==(const CPoint& rhs)const;
    bool operator !=(const CPoint& rhs)const;
    void operator +=(const CPoint& rhs);
    void operator -=(const CPoint& rhs);
    CPoint operator +(const CPoint& rhs);
    CPoint operator -(const CPoint& rhs);

public:
    int x;
    int y;
};

#endif // CPOINT_H
